import { createStore } from 'vuex'
import viewStore from './viewStore'
import reactiveStore from './reactiveStore'

export default createStore({
  state: {
    playerName: '123'
  },
  mutations: {
      setPlayers(state: any, players: string) {
          state.playerName = players
      },
  },
  actions: {
      upv({ commit }: {commit: any}, payload: string) {
          commit('setPlayers', payload)
      },
  },
  modules: {
    viewStore,
    reactiveStore
  }
})

